package com.heima.wemedia.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.entity.WmChannel;
import com.heima.wemedia.mapper.WmchannelMapper;
import com.heima.wemedia.service.WmchannelService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Transactional
@Slf4j
@Service
public class WmchannelServiceImpl extends ServiceImpl<WmchannelMapper, WmChannel> implements WmchannelService {
    @Resource
    private WmchannelMapper wmchannelMapper;
    /**
     * 查询所有频道
     */
    @Override
    public ResponseResult fidAll() {
        return ResponseResult.okResult(this.list());
    }
}
